Optimal. Leaf size=259 \[ \frac {\sqrt {d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^{n+1}}{8 b c^3 (n+1) \sqrt {1-c^2 x^2}}+\frac {i 2^{-2 (n+3)} e^{-\frac {4 i a}{b}} \sqrt {d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (-\frac {i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \Gamma \left (n+1,-\frac {4 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )}{c^3 \sqrt {1-c^2 x^2}}-\frac {i 2^{-2 (n+3)} e^{\frac {4 i a}{b}} \sqrt {d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (\frac {i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \Gamma \left (n+1,\frac {4 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )}{c^3 \sqrt {1-c^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.46, antiderivative size = 259, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {4725, 4723, 4406, 3307, 2181} \[ \frac {i 2^{-2 (n+3)} e^{-\frac {4 i a}{b}} \sqrt {d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (-\frac {i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \text {Gamma}\left (n+1,-\frac {4 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )}{c^3 \sqrt {1-c^2 x^2}}-\frac {i 2^{-2 (n+3)} e^{\frac {4 i a}{b}} \sqrt {d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (\frac {i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \text {Gamma}\left (n+1,\frac {4 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )}{c^3 \sqrt {1-c^2 x^2}}+\frac {\sqrt {d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^{n+1}}{8 b c^3 (n+1) \sqrt {1-c^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2181
Rule 3307
Rule 4406
Rule 4723
Rule 4725
Rubi steps
\begin {align*} \int x^2 \sqrt {d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \, dx &=\frac {\sqrt {d-c^2 d x^2} \int x^2 \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^n \, dx}{\sqrt {1-c^2 x^2}}\\ &=\frac {\sqrt {d-c^2 d x^2} \operatorname {Subst}\left (\int (a+b x)^n \cos ^2(x) \sin ^2(x) \, dx,x,\sin ^{-1}(c x)\right )}{c^3 \sqrt {1-c^2 x^2}}\\ &=\frac {\sqrt {d-c^2 d x^2} \operatorname {Subst}\left (\int \left (\frac {1}{8} (a+b x)^n-\frac {1}{8} (a+b x)^n \cos (4 x)\right ) \, dx,x,\sin ^{-1}(c x)\right )}{c^3 \sqrt {1-c^2 x^2}}\\ &=\frac {\sqrt {d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^{1+n}}{8 b c^3 (1+n) \sqrt {1-c^2 x^2}}-\frac {\sqrt {d-c^2 d x^2} \operatorname {Subst}\left (\int (a+b x)^n \cos (4 x) \, dx,x,\sin ^{-1}(c x)\right )}{8 c^3 \sqrt {1-c^2 x^2}}\\ &=\frac {\sqrt {d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^{1+n}}{8 b c^3 (1+n) \sqrt {1-c^2 x^2}}-\frac {\sqrt {d-c^2 d x^2} \operatorname {Subst}\left (\int e^{-4 i x} (a+b x)^n \, dx,x,\sin ^{-1}(c x)\right )}{16 c^3 \sqrt {1-c^2 x^2}}-\frac {\sqrt {d-c^2 d x^2} \operatorname {Subst}\left (\int e^{4 i x} (a+b x)^n \, dx,x,\sin ^{-1}(c x)\right )}{16 c^3 \sqrt {1-c^2 x^2}}\\ &=\frac {\sqrt {d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^{1+n}}{8 b c^3 (1+n) \sqrt {1-c^2 x^2}}+\frac {i 4^{-3-n} e^{-\frac {4 i a}{b}} \sqrt {d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (-\frac {i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \Gamma \left (1+n,-\frac {4 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )}{c^3 \sqrt {1-c^2 x^2}}-\frac {i 4^{-3-n} e^{\frac {4 i a}{b}} \sqrt {d-c^2 d x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (\frac {i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^{-n} \Gamma \left (1+n,\frac {4 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )}{c^3 \sqrt {1-c^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.90, size = 189, normalized size = 0.73 \[ \frac {d \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^n \left (\frac {8 \left (a+b \sin ^{-1}(c x)\right )}{b n+b}+i 4^{-n} e^{-\frac {4 i a}{b}} \left (\frac {\left (a+b \sin ^{-1}(c x)\right )^2}{b^2}\right )^{-n} \left (\left (\frac {i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^n \Gamma \left (n+1,-\frac {4 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )-e^{\frac {8 i a}{b}} \left (-\frac {i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )^n \Gamma \left (n+1,\frac {4 i \left (a+b \sin ^{-1}(c x)\right )}{b}\right )\right )\right )}{64 c^3 \sqrt {d \left (1-c^2 x^2\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.48, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\sqrt {-c^{2} d x^{2} + d} {\left (b \arcsin \left (c x\right ) + a\right )}^{n} x^{2}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {-c^{2} d x^{2} + d} {\left (b \arcsin \left (c x\right ) + a\right )}^{n} x^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.57, size = 0, normalized size = 0.00 \[ \int x^{2} \sqrt {-c^{2} d \,x^{2}+d}\, \left (a +b \arcsin \left (c x \right )\right )^{n}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {-c^{2} d x^{2} + d} {\left (b \arcsin \left (c x\right ) + a\right )}^{n} x^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int x^2\,{\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )}^n\,\sqrt {d-c^2\,d\,x^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{2} \sqrt {- d \left (c x - 1\right ) \left (c x + 1\right )} \left (a + b \operatorname {asin}{\left (c x \right )}\right )^{n}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________